package cn.webview;

import android.content.Context;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

public class JSToAndroid {
    private Context context;

    public JSToAndroid(Context context){
        this.context = context;
    }

    @JavascriptInterface
    public void callAndroid(String str){
        Log.e("JSToAndroid","str = "+str);
        Toast.makeText(context,str,Toast.LENGTH_SHORT).show();
    }
}
